package com.simple.base.core.repository.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 系统用户表
 * </p>
 *
 * @author kin
 * @since 2017-12-19
 */
@TableName("sys_user")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 所属租户
     */
	@TableField("tenant_id")
	private Long tenantId;
    /**
     * 头像
     */
	private String avatar;
    /**
     * 账户
     */
	private String account;
    /**
     * 密码
     */
	private String password;
    /**
     * 昵称
     */
	private String name;
    /**
     * 联系电话
     */
	private String phone;
    /**
     * 电子邮件
     */
	private String email;
    /**
     * 部门编号
     */
	@TableField("dept_id")
	private Long deptId;
    /**
     * 角色状态(1-启用,2-冻结,3-删除)
     */
	private Integer status;
    /**
     * 创建时间
     */
	@TableField("create_date")
	private Date createDate;
    /**
     * 修改时间
     */
	@TableField("modify_date")
	private Date modifyDate;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Long getDeptId() {
		return deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	@Override
	public String toString() {
		return "SysUser{" +
			", id=" + id +
			", tenantId=" + tenantId +
			", avatar=" + avatar +
			", account=" + account +
			", password=" + password +
			", name=" + name +
			", phone=" + phone +
			", email=" + email +
			", deptId=" + deptId +
			", status=" + status +
			", createDate=" + createDate +
			", modifyDate=" + modifyDate +
			"}";
	}
}
